<script>
  export default {
    onLaunch: function() {
      console.log('App Launch')
      setTimeout(() => {
        plus.navigator.closeSplashscreen();
      }, 3000);
    },
    onShow: function() {
      console.log('App Show')
	  uni.getStorage({
	  	key: 'openid',
	  	success: function(res) {
	  		console.log(res);
	  	},
	  	fail: function(err) {
	  		uni.hideLoading()
	  		uni.navigateTo({
	  			url: '/pages/login/login'
	  		});
	  	}
	  });
    },
    onHide: function() {
      console.log('App Hide')
    }
  }
</script>

<style lang="scss">
  /* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
  @import "uview-ui/index.scss";

  @import "./common/uni.css";
  @import './uni.scss';

  /*每个页面公共css */
  // page {
  //   background: #f3f3f3;
  // }
  .webkit {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }

  .flex {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }

  .clear:after {
    content: '';
    display: block;
    clear: both;
  }

  .ellipsis-1 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .ellipsis-2 {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    white-space: normal !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .mid {
    display: flex;
    align-items: center;
  }

  uni-checkbox .uni-checkbox-input {
    border-radius: 50%;
  }

  uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
    color: #fff !important;
    background: #05052B;
    border-color: #05052B;
  }

  uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked:before {
    font-size: 36upx;
  }

  uni-toast .uni-toast {
    z-index: 9999;
  }
  
</style>
